<?php

function Encrypt($key, $key2, $text)
{	
	$enc=mcrypt_cbc (MCRYPT_BLOWFISH, $key, $text, MCRYPT_ENCRYPT, $key2);
	return base64_encode($enc);
	
}
	
function Decrypt($key, $key2, $text)
{	
	$text = base64_decode($text);
	$dec = mcrypt_cbc (MCRYPT_BLOWFISH, $key, $text, MCRYPT_DECRYPT, $key2);
	$dec = preg_replace("/[\\x00-\\x1F]/", "", $dec);
	return $dec;
}

?>
